package read;


import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.exception.ExcelDataConvertException;
import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * @ClassName DemoHeadDataListener
 * @Description
 * @Author zhengjiang(99514925 @ qq.com)
 * @Date 2020-06-03 15:06
 * @Version V1.0
 **/
public class DemoHeadDataListener extends BaseDataListener<DemoData> {

    private static Logger LOGGER = LoggerFactory.getLogger(DemoHeadDataListener.class);
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        LOGGER.info("解析到一条头数据{}", JSON.toJSON(headMap));

    }
}
